<template>
	<view class="classify pageBg">
		   <ItemComp :isshow='true'v-for="item in Classifylist" :key="item._id" :item='item'></ItemComp>
	</view>
</template>

<script setup>
import { ref } from 'vue';
import{RequestClassify} from '@/apis/apis.js'
	let Classifylist=ref([])
	// 获取分类数据
	async function getClassify(){
		let res = await RequestClassify({
			pageSize:15
		})
		// console.log("@",res);
		Classifylist.value=res.data.data
	}
	getClassify()
</script>

<style lang="scss" scoped>
.classify{
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 10rpx;
	padding: 10rpx 10rpx;
}
</style>
